package com.ruoyi.system.domain.award.research;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 科研获奖信息对象 research_award_info
 * 
 * @author ruoyi
 * @date 2025-07-27
 */
public class ResearchAwardInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 奖项名称 */
    @Excel(name = "奖项名称")
    private String awardName;

    /** 获奖成果名称 */
    @Excel(name = "获奖成果名称")
    private String achievementName;

    /** 获奖等级 */
    @Excel(name = "获奖等级")
    private String awardLevel;

    /** 组织单位 */
    @Excel(name = "组织单位")
    private String organization;

    /** 组织单位类型（1：政府，2：协会） */
    @Excel(name = "组织单位类型", readConverterExp = "1=：政府，2：协会，3：学会，4：其他")
    private Integer organizationType;

    /** 组织单位类型（1：政府，2：协会） */
    @Excel(name = "奖项类型", readConverterExp = "1=：国家级，2：省部级，3：其他")
    private Integer awardType;
    /** 组织单位数量 */
    private Integer totalOrganization;
    /** 自己组织单位排名 */
    private Integer ownOrganizationOrder;

    /** 获奖日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "获奖日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date awardDate;

    /** 上传附件地址 */
    @Excel(name = "上传附件地址")
    private String attachmentUrl;
    /** 获奖教师信息 */
    private List<ResearchAwardTeacher> teachers;
    /** 开始时间 */
    private Date beginTime;
    /** 结束时间 */
    private Date endTime;

    private Long userId;
    /** 排序 */
    private Long rank;

    private String userName;

    private String currentRole;

    private Long deptId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setAwardName(String awardName) 
    {
        this.awardName = awardName;
    }

    public String getAwardName() 
    {
        return awardName;
    }

    public void setAchievementName(String achievementName) 
    {
        this.achievementName = achievementName;
    }

    public String getAchievementName() 
    {
        return achievementName;
    }

    public void setAwardLevel(String awardLevel) 
    {
        this.awardLevel = awardLevel;
    }

    public String getAwardLevel() 
    {
        return awardLevel;
    }

    public void setOrganization(String organization) 
    {
        this.organization = organization;
    }

    public String getOrganization() 
    {
        return organization;
    }

    public void setOrganizationType(Integer organizationType) 
    {
        this.organizationType = organizationType;
    }

    public Integer getOrganizationType() 
    {
        return organizationType;
    }

    public void setAwardDate(Date awardDate) 
    {
        this.awardDate = awardDate;
    }

    public Date getAwardDate() 
    {
        return awardDate;
    }

    public void setAttachmentUrl(String attachmentUrl) 
    {
        this.attachmentUrl = attachmentUrl;
    }

    public String getAttachmentUrl() 
    {
        return attachmentUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("awardName", getAwardName())
            .append("achievementName", getAchievementName())
            .append("awardLevel", getAwardLevel())
            .append("organization", getOrganization())
            .append("organizationType", getOrganizationType())
            .append("awardDate", getAwardDate())
            .append("attachmentUrl", getAttachmentUrl())
            .toString();
    }

    public List<ResearchAwardTeacher> getTeachers() {
        return teachers;
    }

    public void setTeachers(List<ResearchAwardTeacher> teachers) {
        this.teachers = teachers;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getRank() {
        return rank;
    }

    public void setRank(Long rank) {
        this.rank = rank;
    }

    public Integer getAwardType() {
        return awardType;
    }

    public void setAwardType(Integer awardType) {
        this.awardType = awardType;
    }

    public Integer getTotalOrganization() {
        return totalOrganization;
    }

    public void setTotalOrganization(Integer totalOrganization) {
        this.totalOrganization = totalOrganization;
    }

    public Integer getOwnOrganizationOrder() {
        return ownOrganizationOrder;
    }

    public void setOwnOrganizationOrder(Integer ownOrganizationOrder) {
        this.ownOrganizationOrder = ownOrganizationOrder;
    }

    public String getCurrentRole() {
        return currentRole;
    }

    public void setCurrentRole(String currentRole) {
        this.currentRole = currentRole;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }
}
